package org.liuyunfeng.web;

import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: TanJingyu
 * @create: 2022-06-08 10:22
 **/
@RestController
@RequestMapping("/json")
public class JsonController {

    @PostMapping
    public Object post(@RequestBody Book book) {
        return "success...";
    }


    @Getter
    @Setter
    public static class Book {
        private String name;
    }
}

    